/*
 * @Author: 杨超
 * @Date: 2021-10-18 09:45:08
 * @LastEditTime: 2021-10-19 15:05:39
 * @LastEditors: 杨超
 * @Description: 
 */
import CommonApi from './common'

// 公路养护计划
class RoadPlanApi extends CommonApi {
    constructor() {
        super()
        this.scope = '/maintPlan'
    }
    // 编辑页详情
    getEditDetail(data) {
        const path = this.resolvePath('/editDetail')
        return this.post(path, data)
    }

    // 获取计划内容列表，用于季度和月度新建展示
    getPlanContent(data) {
        const path = this.resolvePath('/planContent')
        return this.post(path, data)
    }

    // 获取当前公路已创建周期列表，用于限制年度和季度选择
    getPeriodList(data) {
        const path = this.resolvePath('/existPlanList')
        return this.post(path, data)
    }
}

export default RoadPlanApi
